package hl.fildir;

import java.io.*;

public class FileWriteTest {

    public static void main(String[] args){

        try ( var fw = new FileWriter("poem.txt") ) {
            fw.write("泸州月光\n");
            fw.write("洒在心上\n");
            fw.write("月下的你不复当年模样\n");
        }
        catch (IOException ioe){
            ioe.printStackTrace();
        }
    }
}
